// 返回类型: string / buffer

const babelCore = require("@babel/core");
module.exports = function (source) {
  const options = this.getOptions();
  return babelCore.transform(source, options).code;
};
